package com.wenson.creational.factory;

/**
 * @author: luowangcheng
 * @data：2024/6/10 17:31
 * @description:
 */
public class Airplane extends Enemy{
    public Airplane(int x, int y) {
        super(x, y); // 调用父类构造方法初始化坐标
    }

    @Override
    public void show() {
        System.out.println("绘制飞机于上层图层，出现坐标：" + x + "." + y);
        System.out.println("飞机向玩家发起攻击……");
    }
}
